package com.pjj.messageservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author 76004
 * @apiNote
 * @date 2023/2/27 19:33
 */
@TableName(value = "message")
@Data
public class Message {
    @TableId(value = "id",type = IdType.AUTO)
    Long id;

    Timestamp time;

    String sender;

    String recipient;

    Integer is_read;

    String title;

    String content;

    String image_url;

    //回复的是哪一封邮件
    Long message_id;

}
